package edu.hawaii.halealohacli.command;

import org.wattdepot.client.WattDepotClient;

/**
* The Class FakeCommand.
*
* @author one of the grads.
*/
public class FakeCommand implements Command {

  /** The args. */
  String[] args;
  
  /** The wattdepot client connection. */
  WattDepotClient client;

  /*
* execute the rank towers command.
*/
  /* (non-Javadoc)
* @see edu.hawaii.halealohacli.command.Command#execute()
*/
  @Override
  public void execute() {
    
    assert client.isHealthy();
    
    System.out.print("executing " + getCommandName() + " with args: ");
    for (String arg : args) {
      System.out.print(arg + " ");
    }
    System.out.println("");
  }

  /**
* Gets the command name.
*
* @return the command name.
*/
  @Override
  public String getCommandName() {
    return "fake-command";
  }

  /**
* Initialize.
*
* @param args the argument list.
* @param client the wattdepot client connection
*/
  @Override
  public void initialize(String[] args, WattDepotClient client) {
    this.args = new String[args.length];
    System.arraycopy(args, 0, this.args, 0, this.args.length);
  }

  /**
* Gets the command usage.
*
* @return the usage info string.
*/
  @Override
  public String getCommandUsage() {
    return "fake-command [whatever] [arguments] [you] [like]";
  }

}
